package com.forte.shoppingcustomer;

import java.util.List;

import org.springframework.security.core.userdetails.UsernameNotFoundException;

import com.forte.cartdao.Cart;
import com.forte.shoppingcustomerdao.Address;
import com.forte.shoppingcustomerdao.ShoppingCustomer;

public interface ShoppingCustomerService {
	
	void saveOrUpdate(ShoppingCustomer customer);
	void saveOrUpdate(Address address);
	void saveOrUpdate(Cart cart);
	ShoppingCustomer findCustomerByCustomerId(int customerId);
	ShoppingCustomer findCustomerByEmailAndPassword(String email, String password);
	ShoppingCustomer findCustomerByEmail(String email);
	List<Address> findAllAddress();
	Address findAddressByAddressId(int addressId);

}
